package reflectionAndDynamic;


public class StaticInitializers {
    public StaticInitializers(String name) {
        System.out.println(name + "'s constructor called");
    }
    static {
        System.out.println("static initializer called");
    }
    {
        System.out.println("instance initializer called");
    }
    static {
        System.out.println("static initializer2 called");
    }
    {
        System.out.println("instance initializer2 called");
    }
    public static void main(String[] args) {
        new StaticInitializers("one");
        new StaticInitializers("two");
    }
}